<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>H+ 后台主题UI框架 - 空白页</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="__STATIC__/layout/favicon.ico">
    <link href="__STATIC__/layout/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__STATIC__/layout/css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <!-- jqgrid-->
    <link href="__STATIC__/layout/css/animate.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/style.css?v=4.1.0" rel="stylesheet">
    <link href="__STATIC__/layout/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
    <style>
        .radio-inline input[type=radio] {
            margin-top: 4px;
        }
    </style>
</head>

<body style="color:#333;padding:3px;" class="x_sorll">
<!-- 标题 -->
<div class="page-heade clearfix">
    <h2 class="clearfix text-center">
        <a class="col-md-6 title_color H_right  H_active" id="Ap1" style="font-size: 16px;">所属销售订单查询</a>
        <a class="col-md-6 title_color " id="Ap2"  style=" font-size: 16px;color:#333;" href="{:url('ssxsddmxcx')}">所属销售订单明细查询</a>
    </h2>
</div>
<!-- 标题 -->
<div>
    <form action="" class="form-inline">
        <table class="row-margin-top tab-content table-bordered table text-left" border="1">
            <tr>
                <td style="min-width: 160px" class="text-right"><label for="" class="form-label">订单状态：</label></td>
                <td colspan="5">
                    <div class="form-group">
                        <label class="radio-inline">
                            <input type="radio"  name="status" value=""  {if $status==0}checked{/if}>全部
                        </label>
                        <label class="radio-inline">
                            <input type="radio" name="status" value="1" {if $status=='1'}checked{/if}>审批中
                        </label>
                        <label class="radio-inline">
                            <input type="radio" name="status" value="2"  {if $status=='2'}checked{/if}>待发货
                        </label>
                        <label class="radio-inline">
                            <input type="radio" name="status" value="3"  {if $status=='3'}checked{/if}>待收货
                        </label>
                        <label class="radio-inline">
                            <input type="radio" name="status" value="4"  {if $status=='4'}checked{/if}>已收货
                        </label>
                    </div>
                </td>
            </tr>
            <tr>
                <td style="min-width: 160px" class="text-right"><label for="" class="form-label">分区：</label></td>
                <td><input type="text" class="form-control" name="zoning" value="{$zoning}"></td>
                <td style="min-width: 160px" class="text-right"><label for="" class="form-label">省份：</label></td>
                <td><input type="text" class="form-control" name="provice" value="{$provice}"></td>
                <td style="min-width: 160px" class="text-right"><label for="" class="form-label">城市：</label>
                </td>
                <td><input type="text" class="form-control" name="city" value="{$city}"></td>
            </tr>
            <tr>
                <td style="min-width: 160px" class="text-right"><label for="" class="form-label">时间段：</label></td>
                <td>
                    <div class="form-group">
                        <input type="text" id="start" class="form-control layer-date "
                               style="min-width: 100px;width: 100px; height: 26px;display: inline-block;" name="start">
                    </div>
                    <div class="form-group">
                        到
                    </div>
                    <div class="form-group">
                        <input type="text" class="form-control layer-date"
                               style="min-width: 100px;width: 100px; height: 26px;display: inline-block;" id="end" name="end">
                    </div>
                </td>
                <td style="min-width: 160px" class="text-right"><label for="" class="form-label">订单号：</label></td>
                <td><input type="text" class="form-control" name="sn" value="{$sn}"></td>
                <td style="min-width: 160px" class="text-right"><label for="" class="form-label">申请人：</label>
                </td>
                <td><input type="text" class="form-control" name="sqrmc" value="{$sqrmc}"></td>
            </tr>
            <tr>
                <td style="min-width: 160px" class="text-right"><label for="" class="form-label">经销商编号：</label></td>
                <td><input type="text" class="form-control" name="khbh" value="{$khbh}"></td>
                <td style="min-width: 160px" class="text-right"><label for="" class="form-label">经销商名称：</label>
                </td>
                <td><input type="text" class="form-control" name="khmc" value="{$khmc}"></td>
                <td style="min-width: 160px" class="text-right"><label for="" class="form-label">申请状态：</label></td>
                <td>
                    <select name="" id="" class="form-control">
                        <option value="0">请选择</option>
                        <option value="1">已批准</option>
                        <option value="2">未批准</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td style="min-width: 160px" class="text-right"><label for="" class="form-label"> 发货状态：</label></td>
                <td>
                    <select name="" id="" class="form-control">
                        <option value="0">请选择</option>
                        <option value="1">已批准</option>
                        <option value="2">未批准</option>
                    </select>
                </td>
                <td style="min-width: 160px" class="text-right"><label for="" class="form-label"> 金额(元)范围：</label></td>
                <td>
                    从<input type="text" class="form-control" style="min-width: 80px;width: 80px" name="minNum" value="{$minNum}">
                    到<input type="text" class="form-control" style="min-width: 80px;width: 80px" name="maxNum" value="{$maxNum}">
                </td>
                <td style="min-width: 160px" class="text-right"><label for="" class="form-label">收货状态：</label>
                </td>
                <td>
                    <select name="" id="" class="form-control">
                        <option value="0">请选择</option>
                        <option value="1">已批准</option>
                        <option value="2">未批准</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td style="min-width: 160px" class="text-right"><label for="" class="form-label"> 渠道优惠政策：</label>
                </td>
                <td colspan="5"><input type="text" class="form-control" name="yhPolicymc" value="{$yhPolicymc}"></td>
            </tr>
            <tr>
                <td colspan="6" class="text-center">
                    <button class="btn btn-info query" type="submit">查询</button>
                    <button class="btn btn-info emptyIf" type="button">清空</button>
                    <button class="btn btn-info LendExcel" type="button">导出Excel</button>
                </td>
            </tr>
        </table>
        <table class="table row-margin-top table-bordered text-center bud_hei">
            <tr class="info text-center">
                <th class="text-center">NO.</th>
                <th class="text-center">分区</th>
                <th class="text-center">省份</th>
                <th class="text-center">城市</th>
                <th class="text-center">时间</th>
                <th class="text-center">订单号</th>
                <th class="text-center">申请人</th>
                <th class="text-center">经销商编号</th>
                <th class="text-center">经销商名称</th>
                <th class="text-center">渠道优惠政策编号</th>
                <th class="text-center">申请状态</th>
                <th class="text-center">发货状态</th>
                <th class="text-center">收货状态</th>
                <th class="text-center">箱数</th>
                <th class="text-center">金额(元)</th>
                <th class="text-center">操作</th>
            </tr>
            {volist name="data" id="row" key="k"}
            <tr>
                <td>{$k+(request()->param('page')?request()->param('page'):1-1)*10}</td>
                <td>{$row.zoning}</td>
                <td>{$row.provice}</td>
                <td>{$row.city}</td>
                <td>{$row.sqrq}</td>
                <td><a href="{:url('Other/sell2aToDetail')}">{$row.sn}</a></td>
                <td>{$row.sqr}</td>
                <td>{$row.jxsbh}</td>
                <td>{$row.cusName}</td>
                <td>{$row.yhPolicy}</td>
                <td>{$row.status}</td>
                <td>未发货</td>
                <td>未收货</td>
                <td>265.0</td>
                <td>{$row.yszje}</td>
                <td><a href="javascript:;">查看流程图</a></td>
            </tr>
            {/volist}
        </table>
        <div class="row text-center" id="pageText" style="padding: 0;margin: 0;">
			<div class="col-sm-6 text-left"><div class="padding-10 countSize">共{$count}条记录，{$maxpage}页&nbsp;&nbsp;</div></div>
			<div class="col-sm-6 text-right">{$page}</div>
		</div>
    </form>
</div>
<!-- 全局js -->
<script src="__STATIC__/layout/js/jquery.min.js?v=2.1.4"></script>
<script src="__STATIC__/layout/js/bootstrap.min.js?v=3.3.6"></script>
<!-- <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script> -->
<script src="__STATIC__/layout/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
<!--统计代码，可删除-->
<script src="__STATIC__/layout/js/plugins/layer/laydate/laydate.js"></script>
<script>
    $('.emptyIf').on('click',function () {
        $(this).closest('form').find('input').val('')
    })
    //日期范围限制
    var start = {
        elem: '#start',
        format: 'YYYY/MM/DD',
        min: laydate.now(), //设定最小日期为当前日期
        max: '2099-06-16 23:59:59', //最大日期
        istime: true,
        istoday: false,
        choose: function (datas) {
            end.min = datas; //开始日选好后，重置结束日的最小日期
            end.start = datas //将结束日的初始值设定为开始日
        }
    };
    var end = {
        elem: '#end',
        format: 'YYYY/MM/DD',
        min: laydate.now(),
        max: '2099-06-16 23:59:59',
        istime: true,
        istoday: false,
        choose: function (datas) {
            start.max = datas; //结束日选好后，重置开始日的最大日期
        }
    };
    laydate(start);
    laydate(end);
</script>
</body>

</html>
